package com.baidu.health.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务完成情况
 * @TableName tb_task_situation
 */
@TableName(value ="tb_task_situation")
public class TbTaskSituation implements Serializable {
    /**
     * 任务完成情况id
     */
    @TableId(type = IdType.AUTO)
    private Integer situationId;

    /**
     * 任务完成情况（上传图片判断）
     */
    private String situationPic;

    /**
     * 任务id（和任务id关联）
     */
    private Integer situationTid;

    /**
     * 任务完成时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String situationStarttime;

    /**
     * 逻辑删除
     */
    private Integer situationDeleted;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date situationUpdatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Integer getSituationId() {
        return situationId;
    }

    public void setSituationId(Integer situationId) {
        this.situationId = situationId;
    }

    public String getSituationPic() {
        return situationPic;
    }

    public void setSituationPic(String situationPic) {
        this.situationPic = situationPic;
    }

    public Integer getSituationTid() {
        return situationTid;
    }

    public void setSituationTid(Integer situationTid) {
        this.situationTid = situationTid;
    }

    public String getSituationStarttime() {
        return situationStarttime;
    }

    public void setSituationStarttime(String situationStarttime) {
        this.situationStarttime = situationStarttime;
    }

    public Integer getSituationDeleted() {
        return situationDeleted;
    }

    public void setSituationDeleted(Integer situationDeleted) {
        this.situationDeleted = situationDeleted;
    }

    public Date getSituationUpdatetime() {
        return situationUpdatetime;
    }

    public void setSituationUpdatetime(Date situationUpdatetime) {
        this.situationUpdatetime = situationUpdatetime;
    }
}